const { merge } = require("webpack-merge");
const baseConfig = require("./webpack.common");

module.exports = merge(baseConfig, {
  mode: "development",
  devtool: "source-map",
  target: "web", // devserver不自动刷新，为什么加上target就可以了？
  devServer: {
    // contentBase: "./dist", contentBase 和publicPath分不太清除
    publicPath: "/",
    open: true,
    // inline: true,
    hot: true,
    port: 8080,
  },
});
